/* 抵押信息 */
function getDiyaxx(url){
	$.dpAjax({
		show:true,
		url:url,
		data:{busiId:busiId},
		success: function(datas){
			 var data = datas.result;
			 if(data){
				//车辆信息
				var ywBusinessCar = data.ywBusinessCar;
				if(ywBusinessCar) {
					$('#diya_carBrand').text(ywBusinessCar.nameCarBrand);
					$('#diya_carSeries').text(ywBusinessCar.nameCarSeries);
					$('#diya_carModel').text(ywBusinessCar.nameCarModel);
				} else {
					$('#diya_carBrand').text('-');
					$('#diya_carSeries').text('-');
					$('#diya_carModel').text('-');
				}
				//车贷信息
				var ywBusinessLoan = data.ywBusinessLoan;
				if(ywBusinessLoan) {
					$('#diya_loanBank').text(ywBusinessLoan.loanBankDisplay);
					$('#diya_loanType').text(ywBusinessLoan.loanTypeDisplay);
				} else {
					$('#diya_loanBank').text('-');
					$('#diya_loanType').text('-');
				}
				//抵押信息
				var dzMortgage = data.dzMortgage;
				if(dzMortgage) {
					$('#diya_dateMortgage').text(formateDate(dzMortgage.dateMortgage));
					$('#diya_operatorMortgage').text(dzMortgage.operatorMortgage);
					$('#diya_statusMortgage').text(dzMortgage.statusMortgageDisplay);
					$('#diya_remarks').html(dzMortgage.remarks);
					$('#diya_creatorName').html(dzMortgage.creatorName);
					$('#diya_created').html(formateIntegerTime(dzMortgage.created,'yyyy-MM-dd hh:mm:ss'));
				} else {
					clearMortgage();
				}
				var dzMortgageSub = data.dzMortgageSub;
				if(dzMortgageSub) {
					$('#diya_dateDjzsyj').text(formateDate(dzMortgageSub.dateDjzsyj));
					$('#diya_dateFpyj').text(formateDate(dzMortgageSub.dateFpyj));
					$('#diya_dateZzzyj').text(formateDate(dzMortgageSub.dateZzzyj));
					$('#diya_dateSybxyj').text(formateDate(dzMortgageSub.dateSybxyj));
					$('#diya_dateJqxbdyj').text(formateDate(dzMortgageSub.dateJqxbdyj));
					$('#diya_dateXszfyj').text(formateDate(dzMortgageSub.dateXszfyj));
					$('#diya_dateGzclsyhgz').text(formateDate(dzMortgageSub.dateGzclsyhgz));
					$('#diya_dateGzclyhgzfh').text(formateDate(dzMortgageSub.dateGzclyhgzfh));
					$('#diya_dateGzclsgzc').text(formateDate(dzMortgageSub.dateGzclsgzc));
					$('#diya_dateGzcgzhtfh').text(formateDate(dzMortgageSub.dateGzcgzhtfh));
					$('#diya_dateSjgz').text(formateDate(dzMortgageSub.dateSjgz));
					$('#diya_dateGzjdyclfhgs').text(formateDate(dzMortgageSub.dateGzjdyclfhgs));
					$('#diya_dateDyclsyhgz').text(formateDate(dzMortgageSub.dateDyclsyhgz));
					$('#diya_dateDyclyhgzfh').text(formateDate(dzMortgageSub.dateDyclyhgzfh));
					$('#diya_dateDyclsdyry').text(formateDate(dzMortgageSub.dateDyclsdyry));
					$('#diya_dateDywcdjzsfh').text(formateDate(dzMortgageSub.dateDywcdjzsfh));
					$('#diya_dateDywcqzyjyh').text(formateDate(dzMortgageSub.dateDywcqzyjyh));
				} else {
					clearMortgageSub();
				}
 			}
         }
	});
}

function clearMortgage(){
	$('#diya_dateMortgage').text('-');
	$('#diya_operatorMortgage').text('-');
	$('#diya_statusMortgage').text('-');
	$('#diya_remarks').html('-');
	$('#diya_creatorName').html('-');
	$('#diya_created').html('-');
}

function clearMortgageSub(){
	$('#diya_dateDjzsyj').text('-');
	$('#diya_dateFpyj').text('-');
	$('#diya_dateZzzyj').text('-');
	$('#diya_dateSybxyj').text('-');
	$('#diya_dateJqxbdyj').text('-');
	$('#diya_dateXszfyj').text('-');
	$('#diya_dateGzclsyhgz').text('-');
	$('#diya_dateGzclyhgzfh').text('-');
	$('#diya_dateGzclsgzc').text('-');
	$('#diya_dateGzcgzhtfh').text('-');
	$('#diya_dateSjgz').text('-');
	$('#diya_dateGzjdyclfhgs').text('-');
	$('#diya_dateDyclsyhgz').text('-');
	$('#diya_dateDyclyhgzfh').text('-');
	$('#diya_dateDyclsdyry').text('-');
	$('#diya_dateDywcdjzsfh').text('-');
	$('#diya_dateDywcqzyjyh').text('-');
}